acpi sleep: Rearrange code for entering system sleep states.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 15 Apr 2010 10:36:20 +0000 (11:36 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 15 Apr 2010 10:36:20 +0000 (11:36 +0100)
commitb1d62eecbba151d4dde4f803e87c3c82ca934fab
tree2486162d97fc28d2bb84a734ed1d09187285a006
parent86cd882200f54655c553c40341cd8ab3ecf378ad
acpi sleep: Rearrange code for entering system sleep states.

We cannot freeze_domains in hypercall-continuation context any more,
since that is a softirq context which can interrupt an arbitrary
vcpu. Hence sleeping all vcpus in that context can easily deadlock
(against the vcpu we interrupted). So rearrange the code to
freeze_domains before calling continue_hypercall_on_cpu().

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/acpi/power.c